package org.sang.service;


import org.sang.bean.Administrator;
import org.sang.mapper.AdministratorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import org.springframework.transaction.annotation.Transactional;

import java.sql.Timestamp;
import java.util.List;
/*
 **@Author:刘淑钰
 **Created on 2021/12/17
 */

@Service
@Transactional
public class AdministratorService {

    @Autowired
    AdministratorMapper administratorMapper;

    public List<Administrator> getAllAdministrator() {
        return administratorMapper.getAllAdministrator();
    }


    public int getAdministratorByMassage(String aname,String apwd) {
        return administratorMapper.getAdministratorByMassage(aname,apwd);
    }

}
